# -*- coding: utf-8 -*-
from django.contrib.syndication.feeds import Feed
from snipperize.snippet.models import Snippet
import settings
class LatestSnippets(Feed):
    title = u'Latest Snippets - Snipperize'
    link = '/feeds/latest/'
    description = u'The latest snippets on snipperize'
        
    def items(self):
        return Snippet.all().order('-published_at')[:50]
